package com.bgs.eat.commodityOrder.controller;

import com.bgs.eat.commodityOrder.service.CommodityOrderComplaintService;
import com.bgs.eat.page.PageRequest;
import com.bgs.eat.page.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName CommodityOrderComplaintController
 * @Description TODO
 * @Author cjl
 * @Date 2022/10/26 14:34
 **/
@RestController
@CrossOrigin
@RequestMapping("/commodityOrderComplaint")
public class CommodityOrderComplaintController {

    @Autowired
    CommodityOrderComplaintService commodityOrderComplaintService;

    @GetMapping("/selectCommodityOrderComplaintEntityTwoTable")
    PageResult selectCommodityOrderComplaintEntityTwoTable(Integer resolutionStatus, Integer roleId, Integer countyId, PageRequest pageRequest){
        PageResult pageResult = commodityOrderComplaintService.selectCommodityOrderComplaintEntityTwoTable(resolutionStatus,roleId,countyId,pageRequest);
        return pageResult;
    }


}
